package com.wigem.fa.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wigem.framework.common.util.common.GuidUtils;

import java.util.Date;

/**
 * 申报企业基本信息对象 fa_ent_info
 *
 * @author DH
 * @date 2024-10-20
 */

@Data
@ApiModel
@TableName("fa_ent_info")
public class FaEntInfoEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", name = "id")
    @TableId
    private String id;

    /**
     * 统一社会信用代码
     */
    @ApiModelProperty(value = "统一社会信用代码", name = "socialCreditCode")
    @TableField(value = "social_credit_code")
    private String socialCreditCode;

    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称", name = "orgName")
    @TableField(value = "org_name")
    private String orgName;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人", name = "linkMan")
    @TableField(value = "link_man")
    private String linkMan;

    /**
     * 联系人手机号
     */
    @ApiModelProperty(value = "联系人手机号", name = "linkManPhone")
    @TableField(value = "link_man_phone")
    private String linkManPhone;

    /**
     * 联系人邮箱
     */
    @ApiModelProperty(value = "联系人邮箱", name = "linkManEmail")
    @TableField(value = "link_man_email")
    private String linkManEmail;

    /**
     * 办公地址
     */
    @ApiModelProperty(value = "办公地址", name = "officeAddress")
    @TableField(value = "office_address")
    private String officeAddress;

    /**
     * 行业代码
     */
    @ApiModelProperty(value = "行业代码", name = "industryId")
    @TableField(value = "industry_id")
    private String industryId;

    /**
     * 行业代码名称
     */
    /*@ApiModelProperty(value = "行业代码名称", name = "industryName")
    @TableField(value = "Industry_name")
    private String industryName;*/

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", name = "createTime")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", name = "createUser")
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 启用状态（1启用、0禁用）
     */
    @ApiModelProperty(value = "启用状态（1启用、0禁用）", name = "enableMark")
    @TableField(value = "enable_mark")
    private String enableMark;

    public void create() {
        this.id = GuidUtils.generate();
    }

    public void modify(String keyValue) {
        this.id = keyValue;
    }

}
